package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@Table("order")
@ApiModel("订单信息")
public class Order extends BaseEntity {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @ApiModelProperty("订单主键")
    private Long orderId;

    @ApiModelProperty("订单所属客户id")
    private Long userId;

    @ApiModelProperty("订单所属商品id")
    private Long skuId;

    @ApiModelProperty("订单的标识")
    private String orderKey;

    @ApiModelProperty("订单名称")
    private String orderName;

    @ApiModelProperty("订单数量")
    private Integer orderNum;
}